package com.yuanchu.store.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuanchu.common.utils.PageResult;
import com.yuanchu.store.dto.QueryUserParamsDto;
import com.yuanchu.store.entity.YoshopUserBalanceLogEntity;

/**
 * 用户余额变动明细表
 *
 * @author adan
 * @email 2028038953@gmail.com
 * @date 2023-12-19 20:57:20
 */
public interface YoshopUserBalanceLogService extends IService<YoshopUserBalanceLogEntity> {



    /**
     * 查询用户余额变动明细
     * @param userId
     * @param page
     * @return
     */
    PageResult<YoshopUserBalanceLogEntity> queryUserBalanceLog(Integer userId, Integer page);

    /**
     * 插入用户余额变动明细
     * @return
     */
    boolean insertUserBalanceLog(Integer userId, Integer scene, String orderNo, String payPrice, Integer storeId);

    /**
     *  查询用户积分变动明细
     * @param param
     * @return
     */
    PageResult<YoshopUserBalanceLogEntity> queryUserPointsLog(QueryUserParamsDto param);
}

